package com.mcxx.modules.miniSalvation.family.dao.read;

import com.mcxx.modules.miniSalvation.family.dto.*;
import com.mcxx.modules.miniSalvation.family.entity.FamilyEditEntity;
import com.mcxx.modules.miniSalvation.family.entity.FamilyMainBackUpEntity;
import com.mcxx.modules.miniSalvation.family.entity.FamilyMainEntity;
import com.mcxx.modules.miniSalvation.family.param.FamilyMemberParam;
import com.mcxx.modules.miniSalvation.order.entity.OrderEntity;
import com.mcxx.modules.temporary.family.dto.TempFamilyDTO;
import com.yinhai.ta404.module.mybatis.mapper.Ta404SupportMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface FamilyMainReadDao extends Ta404SupportMapper {

    FamilyMainEntity getById(String id);


    FamilyEditEntity getFamilyByIdCardNo(String cardId);


    Integer getFamilySaveNumber(String familyId);


    FamilyMainListInfoDTO queryFamilyMainByOrderId(String orderId);


    List<FamilyMainEntity>  queryMemberByAreaCodeState(FamilyMemberParam param);


    String getAreaCodeById(String id);


    String getFamilyIdByMemberIdCard(String idcard);

    FamilyMainBackUpEntity selectBackUpInfo(String orderId);

    String selectFamilyRevenue(String familyId);

    String selectCalculateHtml(String familyId);

    String selectPhoneByFamilyId(String familyId);

    Integer getByMemberIdCard(String idcard);

    String getLowerFamilyIdByMemberIdCard(String idcard);

    String selectSaveTypeByFamilyId(String familyId);

    FamilyMainEntity getLowerFamilyById(String familyId);

    OrderEntity getOrderInfoByIdCard(String idCard);

    OrderEntity getLowerOrderInfoByIdCard(String idCard);

    List<Map<String,String>> getMemberByIdCards(@Param("idCards") List<String> idCards);

    List<Map<String,String>> getLowerMemberByIdCards(@Param("idCards") List<String> idCards);
}
